package com.ziyun.erp.modules.goodsCategory.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.ziyun.erp.modules.goodsCategory.entity.GoodsCategoryRelationEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * 分类关联热门商品表
 * 
 * @author 
 * @email 
 * @date 2018-08-29 10:32:00
 */
@Service("goodsCategoryRelationDao")
public interface GoodsCategoryRelationDao extends BaseMapper<GoodsCategoryRelationEntity> {

    GoodsCategoryRelationEntity selectByCategoryId(@Param("categoryId") Integer categoryId);

    BigDecimal getCommissionByGoodsId(@Param("goodsId")Integer goodsId);
}
